// pages/mine/mine.js
var app = getApp();

Page({
  data: {
    orderInfo: {},
    noticeCount: 0
  },
  onShow: function () {
    this.setData({userInfo: app.globalData.userInfo});
    //获取未读消息数
    app.request('/Message/NotReadCount', 'GET', { userId: app.globalData.userId }, res => {
      this.setData({noticeCount: res.count});
    });
  },
  myAddress() {
    wx.chooseAddress();
  }
})